package com.heima.Work;

public class TestWork1 {
    public static void main(String[] args) {
        Work1 w = new Work1();
        Thread t = new Thread(w);
        Thread a = new Thread(w);
        t.setName("窗口一");
        a.setName("窗口二");
        t.start();
        a.start();
    }
}
